]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
environment: Handle @content for property transitions
authorAndre Moreira Magalhaes <andre@endlessm.com>
Wed, 7 Oct 2020 23:21:04 +0000 (20:21 -0300)
committerAndre Moreira Magalhaes <andre@endlessm.com>
Wed, 7 Oct 2020 23:49:09 +0000 (20:49 -0300)
When using `Actor.ease_property` if the property starts with '@' and the
duration of the transition is zero (which may happen if the actor is not
mapped even if a non-zero duration was passed to `ease_property`), the
impl will try getting the actual target object where the property should
be set.

This works fine for most cases but it currently throws an error when
passing '@content.*' properties. Fix this by handling '@content' as
a property of `actor.content` (used by MetaBackgroundActor when
showing the overview).

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1461

js/ui/environment.js

index af0300dc78eb3c964d48cff8d3113c5e48f8c2ba..e777d653ad281488bdcceae51b0ebfedea450c25 100644 (file)
@@ -97,6 +97,8 @@ function _getPropertyTarget(actor, propName) {
         return [actor.get_action(name), prop];
     case '@constraints':
         return [actor.get_constraint(name), prop];
+    case '@content':
+        return [actor.content, name];
     case '@effects':
         return [actor.get_effect(name), prop];
     }